<template>
  <div id="app">
    <Header />
    <router-view></router-view>
    <!-- <el-backtop target=".page-component__scroll .el-scrollbar__wrap" :bottom="100">
    <div
      style="{
        height: 100%;
        width: 100%;
        background-color: #f2f5f6;
        box-shadow: 0 0 6px rgba(0,0,0, .12);
        text-align: center;
        line-height: 40px;
        color: #1989fa;
      }"
    >
      UP
    </div>
  </el-backtop> -->
    <Footer v-show="$route.meta.showFooter" :fBottom="$route.meta.fBottom" />
  </div>
</template>

<script>
import Header from "@/components/Header";
import Footer from "@/components/Footer";

export default {
  name: "app",
  components: { Header, Footer },
  data: function () {
    return {};
  },
  mounted() {
    this.$store.dispatch("categoryList");
    this.$store.dispatch("bannerList");
    this.$API.reqUserInfo()
  }
};
</script>

<style lang='less'>
@import url("./assets/css/normal.css");
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  color: #2c3e50;

  .el-cascader-panel {
    height: 300px;
  }
  .el-cascader-menu__wrap {
    height: 100%;
  }
  .el-scrollbar-panel {
    overflow-x: hidden;
  }
}
</style>
